local Category = "Star Wars"


local NPC = { 	Name = "Stormtrooper", 
				Class = "npc_sgg_stormtrooper",
				Category = Category	}

list.Set( "NPC", NPC.Class, NPC )

local NPC = { 	Name = "Sandtrooper", 
				Class = "npc_sgg_sandtrooper",
				Category = Category	}

list.Set( "NPC", NPC.Class, NPC )

local NPC = { 	Name = "Battle Droid", 
				Class = "npc_sgg_droid",
				Category = Category	}
list.Set( "NPC", NPC.Class, NPC )

local NPC = { 	Name = "Battle Droid Commander", 
				Class = "npc_sgg_droid_commander",
				Category = Category	}
list.Set( "NPC", NPC.Class, NPC )

local NPC = { 	Name = "Battle Droid Geonosis", 
				Class = "npc_sgg_droid_geonosis",
				Category = Category	}
list.Set( "NPC", NPC.Class, NPC )

local NPC = { 	Name = "Battle Droid Pilot", 
				Class = "npc_sgg_droid_pilot",
				Category = Category	}
list.Set( "NPC", NPC.Class, NPC )

local NPC = { 	Name = "Battle Droid Security", 
				Class = "npc_sgg_droid_security",
				Category = Category	}
list.Set( "NPC", NPC.Class, NPC )

local NPC = { 	Name = "Clonetrooper", 
				Class = "npc_sgg_clonetrooper",
				Category = Category	}
list.Set( "NPC", NPC.Class, NPC )

local NPC = { 	Name = "Clone Commando", 
				Class = "npc_sgg_clonecommando",
				Category = Category	}
list.Set( "NPC", NPC.Class, NPC )
  
local Npc = FindMetaTable("NPC")
 
function Npc:GetEyeTrace()
 local pos = self:GetShootPos() 
 local ang = self:GetAimVector() 
 local tracedata = {} 
 tracedata.start = pos 
 tracedata.endpos = pos+(ang*25000) 
 tracedata.filter = self
 local trace = util.TraceLine(tracedata) 
 return trace
end 
  
function Npc:Alive()
  if self:Health() > 0 then return true end
end
  
function Npc:KeyDown()
 if math.Rand(1,10)  == 1 then return true end --Someone should make A.I. to tell the npc which key to press, this is just a temp solution
end

